//
//  GZNetManager.h
//  GongZheng
//
//  Created by huan on 2018/4/27.
//  Copyright © 2018年 huan. All rights reserved.
//

#import "AFHTTPSessionManager.h"

typedef void (^GZNetWrokResultBlock)(NSDictionary *dataDictionary,NSString *errorString);

@interface GZNetManager : AFHTTPSessionManager

@property (nonatomic, assign) NSInteger numsOfOutTime;

+ (instancetype)defaultManager;

+ (void)netWorkReachability;

+ (void)GET:(NSString *)urlString resultBlock:(GZNetWrokResultBlock)resultBlock;

+ (void)DESPOST:(NSString *)urlString parameters:(NSDictionary *)params resultBlock:(GZNetWrokResultBlock)resultBlock;

+ (void)TDESPOST:(NSString *)urlString parameters:(NSDictionary *)params resultBlock:(GZNetWrokResultBlock)resultBlock;

@end
